40. 测试

Spring Boot提供很多有用的工具类和注解用于帮助你测试应用,主要分两个模块:spring-boot-test包含核心组件,spring-boot-test-autoconfigure为测试提供自动配置。

大多数开发者只需要引用spring-boot-starter-test ‘Starter’,它既提供Spring Boot测试模块,也提供JUnit,AssertJ,Hamcrest和很多有用的依赖。

powered by Gitbook该页面构建时间: 2017-08-01 08:30:17

results matching ""

    No results matching ""